/*
 * @Author: wrh123 482597539@qq.com
 * @Date: 2024-01-21 11:09:25
 * @LastEditors: wrh123 482597539@qq.com
 * @LastEditTime: 2024-01-21 11:09:34
 * @FilePath: /vue-admin/src/api/paying.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 收费账号的分页查询

import service from '@/utils/request'
export function getPayingList(params) {
  return service({
    url: '/collectFee/selectAccToll',
    method: 'get',
    params
  })
}

// 修改账户费用
export function updateAccountCharges(data) {
  return service({
    url: '/collectFee/updateTbAccountMoney',
    method: 'put',
    data
  })
}

// 新增收费账号
export function addAccountCharges(data) {
  return service({
    url: '/collectFee/insertTbAccountRates',
    method: 'post',
    data
  })
}

// 删除收费账号
export function deleteAccount(id) {
  return service({
    url: `/collectFee/deleteTbAccountRates/${id}`,
    method: 'delete'
  })
}
